package com.q.springboot.framework.exception;

import com.q.springboot.framework.enums.ResultCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 自定义异常
 */
@Getter
@Setter
public class CustomException extends RuntimeException {

    private static final long serialVersionUID = 4564124491192825748L;

    private ResultCode resultCode;

    public CustomException() {
        super();
    }

    public CustomException(ResultCode resultCode) {
        super(resultCode.message());
    }

}